package com.itheima.wemedia.feign;

import com.itheima.common.vo.ResultVo;
import com.itheima.wemedia.pojo.WmMaterial;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;


@FeignClient(name = "leadnews-wemedia",contextId = "WmMaterialFeign")
public interface WmMaterialFeign {


    /**
     * 通过远程调用自媒体微服务添加素材
     * @param wmMaterial
     * @return
     */
    @PostMapping("/api/wmMaterial/add")
    ResultVo<WmMaterial> add(@RequestBody WmMaterial wmMaterial);


}
